package com.platform.admin.feign.fallback;

import com.platform.admin.contant.BusinessExConstant;
import com.platform.admin.dto.DefalutDTO;
import com.platform.admin.exception.XxxRuntimeException;
import com.platform.admin.feign.DefaultFeignApi;
import com.platform.common.entity.ApiResponse;
import org.springframework.stereotype.Component;

/**
 * @Description: 机长看板相关接口 熔断
 * @author: yuanlai
 * @CreateTime: 2022/10/20 10:08
 */
@Component
public class DefaultFeignApiFallBack implements DefaultFeignApi {

    @Override
    public ApiResponse<Boolean> stopTheDeviceNoticeToSchedule(String secretKey, DefalutDTO dto) {
        throw new XxxRuntimeException(BusinessExConstant.FEIGN_ERROR);
    }

    @Override
    public ApiResponse<Boolean> initBoardWatchData(String secretKey, DefalutDTO dto) {
        throw new XxxRuntimeException(BusinessExConstant.FEIGN_ERROR);
    }
}
